<template>
    <div>
        <a-space :size="0">
            <a-select v-model="type" @change="handleChange">
                <a-select-option value="name"> 姓名 </a-select-option>
                <a-select-option value="age"> 年龄 </a-select-option>
                <a-select-option value="gender"> 性别 </a-select-option>
            </a-select>

            <a-input-search
                placeholder="input search text"
                enter-button
                @search="onSearch"
            />
        </a-space>
    </div>
</template>

<script>
export default {
    data(){
        return {
            type:"name"
        }
    },
    methods:{
        onSearch(value){
            console.log(value,this.type)
            this.$emit("show",1,5,this.type,value);
        }
    }
};
</script>

<style>
</style>